package cn.tedu.ssm.Controller;

import com.mysql.jdbc.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class indexController {
    @RequestMapping("index")
    public ModelAndView index(String target){
        ModelAndView view = new ModelAndView("index");
        if(StringUtils.isNullOrEmpty(target)){
            target="welcome";
        }
        view.addObject("t",target+".jsp");
        return view;
    }

}
